<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="../../editor-popups.js"></script>
<script type="text/javascript" src="<?php echo RMCURL; ?>/include/js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $eurl; ?>/plugins/link/css/links.css" />
<script type="text/javascript">
	$(document).ready(function(){
		$("#quote").val(exmPopup.selection().text);
		$("#cancel").click(function(){
			exmPopup.closePopup();
		});
		$("#insert").click(function(){
			if ($("#quote").val()==''){
				exmPopup.closePopup();
				return;
			}
			
			exmPopup.insertText("[quote]"+$("#quote").val()+"[/quote]");
			exmPopup.closePopup();
			
		});
	});
</script>
</head>
<body>
<label for="quote"><?php echo INPUT; ?></label>
<textarea id="quote" style="width: 100%; height: 120px; margin: 5px 0;"></textarea>
<input type="button" id="insert" value="<?php echo INSERT; ?>" class="formButton" />
<input type="button" id="cancel" value="<?php echo CANCEL; ?>" class="" />
</body>
</html>
